﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SArenaPlayerReward extends IMessageBase
    {
        public var copyType:int;
        public var state:int;
        public var type:int;
        public var reward:int;
        public var count:int;
        public var updateDt:Date;
        public const _type:int = 7017;
        public static var _regist:SArenaPlayerReward = new SArenaPlayerReward(true);

        public function SArenaPlayerReward(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaPlayerReward();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.copyType);
            param1.writeInt(this.state);
            param1.writeInt(this.type);
            param1.writeInt(this.reward);
            param1.writeInt(this.count);
            param1.writeDate(this.updateDt);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.copyType = param1.readInt();
            this.state = param1.readInt();
            this.type = param1.readInt();
            this.reward = param1.readInt();
            this.count = param1.readInt();
            this.updateDt = param1.readDate();
            return;
        }// end function

    }
}
